<?php

	/*
	 * AJAX call to delete an SMS from the database.
	 * SMSs are stored in the table "inbox".
	 *
	 * Variables:
	 *   id (int) : record ID in the database
	 *
	 * Returns: string
	 *
	 */

	if($_GET["id"] > 0){
		mysql_query("DELETE FROM inbox WHERE ID=".round($_GET["id"])." LIMIT 1");
		echo "ok";
	}
	exit;
?>